package com.usian.controller;

import com.usian.designer.HomeSorting;
import com.usian.service.SortingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/app/users/sorting")
public class SortingController {

    @Autowired
    private SortingService sortingService;

    @RequestMapping("/getSorting")
    public List<HomeSorting> getSorting(){
        List<HomeSorting> sorting = sortingService.getSorting();
        return sorting;
    }
}
